import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author: xinmi
 * @date: 2020/10/29
 * @description:
 */
public class DateCompare {
    public static void main(String[] args) {

        String endDate = "2020-11-16T16:00:00.000+0000";
        String startDate = "2020-10-07T16:00:00.000+0000";

        SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

        try {
            Date date1 = format.parse(startDate);
            Date date2 = format.parse(endDate);

            boolean before = date1.before(date2);

            System.out.println(before);

        } catch (ParseException e) {
            e.printStackTrace();

        }
    }
}
